<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    
    <ui:composition template="/template.xhtml">
        <ui:define name="top">
            <h:outputText value="Transporte"></h:outputText>
        </ui:define>        
        <ui:define name="content">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>        
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="Nombre:" for="nombre" />
                    <h:inputText id="nombre" value="#{rolController.selected.nombre}" title="Ingrese Rol" />
                </h:panelGrid>
                <br />
                <br />
                <h:commandLink action="#{rolController.create}" value="Guardar Rol" />
                <br />
                <br />
                <br />
                <h:commandLink action="#{rolController.prepareList}" value="Ver Lista Roles" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="Ir Inicio" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>        
</html>
